<div class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header" data-base-url="<?php echo base_url() ?>">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Smart CRM</a>
        </div>
        <div class="collapse navbar-collapse">
            
            <ul class="nav navbar-nav navbar-right">
                <li>
                    <?php 
                    $current_user=$this->session->userdata('current_user');
                    ?>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php echo $current_user->name?> <b class="caret"></b></a>
                    <ul class="dropdown-menu multi-level">
                        <li><a href="<?php echo base_url("accounts/logout"); ?>">Logout</a></li>
                        <li><a href="#">Tài khoản cá nhân</a></li>
                        
                    </ul>
                </li>
            </ul>
            
            <ul class="nav navbar-nav navbar-right">
                <li>
                    
                    <a href="<?php echo base_url("sales"); ?>" class="">Bán hàng <b class="caret"></b></a>
                    
                </li>
            </ul>
            <ul class="nav navbar-nav">
                <li class="active"><a href="<?php echo base_url(); ?>">Home</a></li>
                <li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Báo cáo <b class="caret"></b></a>
                    <ul class="dropdown-menu multi-level">
                        <li><a href="#">Bán hàng</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Hàng hóa</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Công nợ</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Tài chính</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Cuối ngày</a></li>
                        
                    </ul>
                </li>
                <li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Hàng hóa <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo base_url("products"); ?>">Danh mục</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo base_url("products/price_book"); ?>">Thiết lập giá</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Kiểm kho</a></li>
                        <li class="divider"></li>
                        
                    </ul>
                </li>
                <li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Đối tác <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo base_url("contacts"); ?>">Khách hàng</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo base_url("vendors"); ?>">Nhà cung cấp</a></li>
                        <li class="divider"></li>
                        
                        
                    </ul>
                </li>
                <li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">Giao dịch <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo base_url("products"); ?>">Hóa đơn</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo base_url("products/price_book"); ?>">Trả hàng</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo base_url("products/price_book"); ?>">Nhập hàng</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo base_url("products/price_book"); ?>">Trả hàng nhập</a></li>
                        <li class="divider"></li>
                        <li><a href="<?php echo base_url("products/price_book"); ?>">Chuyển hàng</a></li>
                        <li class="divider"></li>
                        
                    </ul>
                </li>
                
            
            </ul>
        </div><!--/.nav-collapse -->
    </div>
</div>